home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr29 / os2c_101.zip / WCD.TXT < prev    next >
Text File  |  1995-01-27  |  7KB  |  193 lines

  1.  
  2.                      Wolfgang's Change Directory v1.62
  3.                        (c) 1994/95 by Wolfgang Sarp
  4.                             All rights reserved
  5.  
  6.                            Released Jan 14, 1995
  7.  
  8.  
  9. WCD (Wolfgang's Change Directory) is a utility that allows you to change
  10. to a directory across all drives and without to enter the complete path-
  11. and directory name.
  12.  
  13. WCD.CMD and WCDMAIN.EXE are used under OS/2, WCDDOS.EXE is the DOS program.
  14. You may rename WCDDOS.EXE, e.g. to WCD.EXE, but you must not rename the
  15. OS/2 program WCDMAIN.EXE.
  16.  
  17. Because OS/2 is restoring the environment when the program is finished
  18. running, you have to start the main program WCDMAIN.EXE with the WCD.CMD.
  19. Just copy WCD.CMD and WCDMAIN.EXE into a directory that is in the PATH
  20. and you can use it everywhere on your system to change the directory to
  21. any drive and any directory. Don't care about the WCD.CMD, it is re-written
  22. every time by the main program. For DOS no batch file is needed.
  23.  
  24. The usage is very simple.
  25.  
  26.  WCD /? or WCD /h will give you some help,
  27.  
  28.  
  29. The syntax:
  30. ───────────
  31.  
  32.   WCD /Scan [drivelist]
  33.         will scan all drives in the drivelist and write the directories
  34.         into the database on drive C. If [drivelist] is omitted, WCD will
  35.         scan all drives.
  36.  
  37.   WCD /Update [drivelist]
  38.         will update all drives of the drivelist-parameter in the database.
  39.         The information of all other drives will remain in the database.
  40.         If [drivelist] is omitted, WCD will update all drives that are
  41.         currently in the database.
  42.  
  43.   WCD /QScan [drivelist]
  44.   WCD /QUpdate [drivelist]
  45.         This will only scan directories without an extension. If you don't
  46.         have directories with extensions you might want to use this method,
  47.         it's a bit faster.
  48.  
  49.   WCD /Sort
  50.         will sort the database. You can use /Sort together with /Scan
  51.         or /Update to sort the database after the scan or update.
  52.         E.g. "WCD /Scan /Sort CDE".
  53.  
  54.   WCD <directory>
  55.         will change to the drive and directory that matches your parameter.
  56.         If there's more than one match, WCD will show a pop-up window and
  57.         let you select the directory.
  58.  
  59.   WCD ... [....] [.....]
  60.         will go up two, three four... directory levels.
  61.  
  62.   WCD md directory_name
  63.         will create a directory and update the database
  64.  
  65.   WCD rd directory_name
  66.         will delete a directory and update the database
  67.  
  68.   WCD ren oldname newname
  69.         will rename directory a directory and update the database
  70.  
  71.  
  72.  
  73. The options:
  74. ────────────
  75.  
  76.   /a          : list all directories.
  77.                 If WCD finds more than one directory that matches exact
  78.                 to your search string WCD will only list these exact
  79.                 matching directories by default. Use /a if you want WCD
  80.                 to list all directories that contain the search string
  81.                 in their name.
  82.  
  83.   /b          : list only directories that begin with the searchstring.
  84.                 By default WCD lists all directories that contain the
  85.                 string somewhere in the name. Use /b If you want WCD to
  86.                 list only directories which begin with your <directory>
  87.                 parameter.
  88.  
  89.   /c          : don't scan CD-ROM drives.
  90.                 By default WCD scans all drives. If you don't want WCD
  91.                 to scan CD-ROM drives by default, use /c and WCD will not
  92.                 scan a CD-ROM drive with "WCD /Scan". You have to give
  93.                 the drive letter, e.g. "WCD /Scan cdfg" to make WCD scan
  94.                 a CD-ROM drive when this switch is set.
  95.                 This /C switch only works with the OS/2 version. Right
  96.                 now I don't know how to detect a CD-ROM drive under DOS.
  97.                 If somebody could supply me with some information on that,
  98.                 I'd be happy.
  99.  
  100.   /d          : search current drive only.
  101.                 Search for the directory you want to change to only on
  102.                 the current drive.
  103.  
  104.   /e          : if only one exact match, show popup window.
  105.                 Show popup window if exactly one directory name is found
  106.                 in the WCD database with the exact name to search for.
  107.  
  108.   /s[x]       : shrink searchstring.
  109.                 This option will change WCD's behaviour when no directories
  110.                 are found that match the original searchstring.
  111.      0:         (/s0) do not shrink searchstring, abort (default).
  112.      1:         (/s1) shrink searchstring and try again.
  113.      2:         (/s2) shrink searchstring and try again. Always open window,
  114.                 even if only one directory matches the shrunk searchstring.
  115.                 /s (without a number) is equal to /s1.
  116.  
  117.  
  118.  
  119. Environment variables:
  120. ──────────────────────
  121.  
  122.   WCD         : to set the above options as defaults.
  123.                 If you want to use any of the obove options as default
  124.                 you can use the the environment variable WCD.
  125.                 E.g. use "SET WCD=/S1/C".
  126.  
  127.   WCDDIR      : set drive and directory to store the WCD database at.
  128.                 By default the WCD database is placed in the root directory
  129.                 of drive C:. If you prefer to place it on an other drive or
  130.                 in an other directory you can do it by using the environment
  131.                 variable WCDDIR. E.g. "SET WCDDIR=D:\TOOLS\WCD".
  132.                 If you set WCDDIR, you have to define full drive an path, but
  133.                 do not add the filename!
  134.  
  135.   WCDCOL      : set colors of the WCD popup window.
  136.                 If you don't like the default window colors you can change
  137.                 them with the environment variable WCDCOL.
  138.                 E.g. "SET WCDCOL=15,1". You must use this format, 2 numbers
  139.                 devided by a comma. The first number is the foreground color,
  140.                 the second is the background color. Foreground colors are
  141.                 accepted from 0 to 15, background colors from 0 to 7.
  142.  
  143.  
  144.   Important: Use uppercase letters for the SET-switches!
  145.  
  146.  
  147.  
  148. Using WCD with 4DOS/4OS2:
  149. ─────────────────────────
  150.  
  151. WCD is also 'ALIAS-aware'. If you're using 4DOS or 4OS2 you can create
  152. the aliases CD, MD and RD to use WCD with a simple CD command and to
  153. keep your database always up-to-date.
  154. This is an example how it could be done with 4DOS:
  155.  
  156.   ALIAS CD=C:\DOS\WCDDOS %1
  157.   ALIAS MD=C:\DOS\WCDDOS MD %1
  158.   ALIAS RD=C:\DOS\WCDDOS RD %1
  159.  
  160. With 4OS2 you could do it like this:
  161.  
  162.   ALIAS cd=c:\os2\wcd %1
  163.   ALIAS md=c:\os2\wcdmain md %1
  164.   ALIAS rd=c:\os2\wcdmain rd %1
  165.  
  166. You can add the above commands to your AUTOEXEC.BAT or 4START.CMD or
  167. just add the aliases to your alias-list that you read with 'ALIAS /R'.
  168.  
  169.  
  170.  
  171. If you have any problems, ideas or suggestions or just want to praise
  172. me <g>, feel free to contact me. Read ORDER.WCD to get to know who to
  173. contact me and how to register.
  174.  
  175.  
  176. Have fun, take care, Cheers,
  177.  
  178. Wolfgang
  179.  
  180.  
  181.  
  182.          Wolfgang Sarp
  183.          Paul-von-Schoenaichstr. 21
  184.          23858 Reinfeld
  185.          Germany
  186.  
  187.          BBS: +49-4533-5003  (USR 28k8 V.34, V.FC)
  188.   CompuServe: 100342,207
  189.     Internet: Wolfgang_Sarp@sandburg.fido.de
  190.         Fido: 2:240/5355
  191.          Fax: +49-4533-5003
  192.  
  193.